﻿@model Subtle.Areas.Administration.ViewModels.MediaAddViewModel
@{
	ViewBag.Title = "Add";
	Layout = "~/Areas/Administration/Views/Shared/_Layout.cshtml";
}
<h2>
	Add</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm("Add", "Media", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
	@Html.ValidationSummary(true)
	<div class="editor-label">
		<input type="file" id="MediaFile" name="MediaFile" size="23"/>
	</div>
	<div class="editor-label">
		@Html.DisplayFor(model => model.MediaUrl)
	</div>
	<p>
		<input type="submit" value="Add" />
	</p>
}
<div>
	@Html.ActionLink("Back to List", "Index")
</div>
